import { UserService } from './user.service'

export const commonProvider = {
  provide: 'COMMON_PROVIDER',
  useValue: {
    id: 6,
    name: '刘超',
    age: 27
  }
}

export const factoryProvider = {
  provide: 'FACTORY_PROVIDER',
  useFactory: (userService: UserService) => {
    return userService
  },
  inject: [UserService]
}